﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" 
CodeBehind="overViewPage.aspx.cs" Inherits="Webbshop.overViewPage" culture="auto" meta:resourcekey="PageResource1" uiculture="auto" %>


<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server"></asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    
    <div id="productHolder">
    <asp:HiddenField ID="hiddenResult" runat="server"/>
   
        <asp:Repeater ID="CategoryResultList" runat="server" OnItemCommand="Item_Command" >
            <ItemTemplate>
                <div class="product">
                    <a href="ProductDetail.aspx?productID=<%# Eval("productId") %>">
                    <img
                        id="image_<%# Eval("productId") %>"
                        src="Content/<%# Eval("ImageURL") %>"
                        alt="<%# Eval("name") %>"
                    />
                    </a>
                    
                    <h2 id="productName"><%# Eval("name") %></h2>
                    <h2 id="productPrice"><%# Eval("price") %> kr</h2>
                    <asp:Button ID="btnBuy" runat="server" Text="Köp" CommandArgument='<%# Eval("productId") %>' meta:resourcekey="btnBuyResource1" />
                </div>
            </ItemTemplate>
        </asp:Repeater>
        
    </div>
</asp:Content>